package com.salmon.study.dubbo.consumer;

import com.salmon.study.dubbo.consumer.service.DemoService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class ConsumerApplication {

	public static void main(String[] args) {
		ConfigurableApplicationContext context = SpringApplication.run(ConsumerApplication.class, args);

		DemoService service = context.getBean("demoService", DemoService.class);

		String msg = service.testDubbo("这是一个dubbo程序测试");
		System.out.println(msg);


		context.close();
	}
	
}
